package com.dyzx.hbb.modules.mtn.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * 车辆信息表
 * @TableName mtn_car_vehicle
 */
@TableName(value ="mtn_car_vehicle")
@Data
public class MtnCarVehicle {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 状态: 1-草稿, 2-待处理, 3-已完成, 4-已取消
     */
    private Integer status;

    /**
     * 创建日期（毫秒级时间戳）
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createDate;

    /**
     * 更新日期（毫秒级时间戳）
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateDate;

    /**
     * 删除标记: 0-未删除, 1-已删除
     */
    private Integer deleted;

    /**
     * 操作人ID
     */
    private Long operatorId;

    /**
     * 车架号
     */
    private String vin;

    /**
     * 发动机号
     */
    private String engineNo;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 车型
     */
    private String model;

    /**
     * 颜色
     */
    private String color;

    /**
     * 车型ID
     */
    private Long carModalId;

    /**
     * 
     */
    private Long carMarkId;

    /**
     * 
     */
    private Long carModalAreaId;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MtnCarVehicle other = (MtnCarVehicle) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId()))
            && (this.getVin() == null ? other.getVin() == null : this.getVin().equals(other.getVin()))
            && (this.getEngineNo() == null ? other.getEngineNo() == null : this.getEngineNo().equals(other.getEngineNo()))
            && (this.getBrand() == null ? other.getBrand() == null : this.getBrand().equals(other.getBrand()))
            && (this.getModel() == null ? other.getModel() == null : this.getModel().equals(other.getModel()))
            && (this.getColor() == null ? other.getColor() == null : this.getColor().equals(other.getColor()))
            && (this.getCarModalId() == null ? other.getCarModalId() == null : this.getCarModalId().equals(other.getCarModalId()))
            && (this.getCarMarkId() == null ? other.getCarMarkId() == null : this.getCarMarkId().equals(other.getCarMarkId()))
            && (this.getCarModalAreaId() == null ? other.getCarModalAreaId() == null : this.getCarModalAreaId().equals(other.getCarModalAreaId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode());
        result = prime * result + ((getVin() == null) ? 0 : getVin().hashCode());
        result = prime * result + ((getEngineNo() == null) ? 0 : getEngineNo().hashCode());
        result = prime * result + ((getBrand() == null) ? 0 : getBrand().hashCode());
        result = prime * result + ((getModel() == null) ? 0 : getModel().hashCode());
        result = prime * result + ((getColor() == null) ? 0 : getColor().hashCode());
        result = prime * result + ((getCarModalId() == null) ? 0 : getCarModalId().hashCode());
        result = prime * result + ((getCarMarkId() == null) ? 0 : getCarMarkId().hashCode());
        result = prime * result + ((getCarModalAreaId() == null) ? 0 : getCarModalAreaId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", status=").append(status);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", deleted=").append(deleted);
        sb.append(", operatorId=").append(operatorId);
        sb.append(", vin=").append(vin);
        sb.append(", engineNo=").append(engineNo);
        sb.append(", brand=").append(brand);
        sb.append(", model=").append(model);
        sb.append(", color=").append(color);
        sb.append(", carModalId=").append(carModalId);
        sb.append(", carMarkId=").append(carMarkId);
        sb.append(", carModalAreaId=").append(carModalAreaId);
        sb.append("]");
        return sb.toString();
    }
}